<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="target-densitydpi=286, width=640, user-scalable=no" />
<title>修改登录密码</title>
<link href="/Public/Home1/css/css.css" rel="stylesheet" />
<script src="/Public/Home1/js/jquery-1.7.2.min.js"></script>
</head>

<body>
<div class="topz mgz"></div>
<div class="top xi40 cen bai bgGradient"><div class="icon2 fr"></div>修改登录密码<div class="topl"><a href="javascript:history.go(-1);"><img align="absmiddle" src="/Public/Home1/images/1_02.png" /></a></div></div>
<div class="mg bgbai ai bradius infoShadow2 mt20">

    <!-- <div class="jieshou1 datum  xi24"><span class="data_txt">手机号码</span><span class="xisp fl"><input name="" type="password" class="bd5 xi24" placeholder="15689896363"></span></div>
    <div class="jieshou1 datum  xi24"><span class="data_txt">旧密码</span><span class="xisp fl"><input name="" type="password" class="bd5 xi24" placeholder="请输入旧密码"></span></div>
    <div class="jieshou1 datum  xi24"><span class="data_txt">新密码</span><span class="xisp fl"><input name="" type="password" class="bd5 xi24" placeholder="请输入新登录密码"></span></div>
    <div class="jieshou1 datum  xi24"><span class="data_txt">再次输入</span><span class="xisp fl"><input name="" type="password" class="bd5 xi24" placeholder="请输入确认新密码"></span></div>
  -->
    <form name="form-pwtrade">
            <div class="jieshou1 datum bgbai xi26">
                <span class="data_txt">旧密码</span>
                <span class="xisp fl">
                    <input id="oldpassword" name="name" type="password" class="bd5 xi26" placeholder="原登录密码">
                </span>
            </div>
            <div class="jieshou1 datum bgbai xi26">
                <span class="data_txt">新密码</span>
                <span class="xisp fl">
                    <input id="newpassword" name="name" type="password" class="bd5 xi26" placeholder="新登录密码">
                </span>
            </div>
            <div class="jieshou1 datum bgbai xi26">
                <span class="data_txt">再次输入</span>
                <span class="xisp fl">
                    <input id="repassword" type="password" class="bd5 xi26" placeholder="确认新密码">
                </span>
            </div>

            <div class="denglu2 mg cen "><input onClick="Update()" name="addbank" id="btn" type="button" class="an1 xi32 bai bgGradient" value="提交"></div>
            <!-- <div class="denglu2 mgz cen">
                <input onClick="Update()" name="addbank" id="btn" type="button" class="an1 xi32 bai" value="提交">
            </div> -->
        </form>

</div>

<!--底部导航 -->
<div class="buylist_menu xi20 cen">
    <ul>
			<li class="bg1"><a href="/index/index.html">首页</a></li>
            <li class="bg2"><a href="/Article/index/id/21">资讯</a></li>
            <li class="bg3"><a href="/finance/mycj.html">明细</a></li>
            <li class="bg4hover"><a href="/finance/index.html">我的</a></li>
    </ul>
    <!--判断hover-->
</div>
<div class="buylist_menuz mgz"></div>
<script src="/Public/Home1/js/mjs.js"></script>
<script>
        function Update() {
            $.post("<?php echo U('User/uppassword');?>", {
                oldpassword: $('#oldpassword').val(),
                newpassword: $('#newpassword').val(),
                repassword: $('#repassword').val()
            }, function (data) {
                if (data.status == 1) {
                    alert(data.info);
                    window.location = "<?php echo U('User/index');?>";
                } else {
                    alert(data.info);
                    if (data.url) {
                        window.location = data.url;
                    }
                }
            }, "json");
        }
        </script>
</body>
</html>